package com.hss.rxjava.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ActivityBean implements Parcelable{
	public String id;
	public int activityType;
	public String title;
	public Integer status;// 0未开始   1报名中    2进行中   3已完成   4已关闭
	public String smallIconPath;
	public Integer isJoin;
	public String bigIconPath;
	public long releaseTime;
	public String applyNum;
	public String allCount;
	public String integral;
	public String describe;
	public String isNew;
	public long reStartTime;
	public long reEndTime;
	public long acStartTime;
	public long acEndTime;


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.id);
		dest.writeInt(this.activityType);
		dest.writeString(this.title);
		dest.writeValue(this.status);
		dest.writeString(this.smallIconPath);
		dest.writeValue(this.isJoin);
		dest.writeString(this.bigIconPath);
		dest.writeLong(this.releaseTime);
		dest.writeString(this.applyNum);
		dest.writeString(this.allCount);
		dest.writeString(this.integral);
		dest.writeString(this.describe);
		dest.writeString(this.isNew);
		dest.writeLong(this.reStartTime);
		dest.writeLong(this.reEndTime);
		dest.writeLong(this.acStartTime);
		dest.writeLong(this.acEndTime);
	}

	public ActivityBean() {
	}

	protected ActivityBean(Parcel in) {
		this.id = in.readString();
		this.activityType = in.readInt();
		this.title = in.readString();
		this.status = (Integer) in.readValue(Integer.class.getClassLoader());
		this.smallIconPath = in.readString();
		this.isJoin = (Integer) in.readValue(Integer.class.getClassLoader());
		this.bigIconPath = in.readString();
		this.releaseTime = in.readLong();
		this.applyNum = in.readString();
		this.allCount = in.readString();
		this.integral = in.readString();
		this.describe = in.readString();
		this.isNew = in.readString();
		this.reStartTime = in.readLong();
		this.reEndTime = in.readLong();
		this.acStartTime = in.readLong();
		this.acEndTime = in.readLong();
	}

	public static final Creator<ActivityBean> CREATOR = new Creator<ActivityBean>() {
		@Override
		public ActivityBean createFromParcel(Parcel source) {
			return new ActivityBean(source);
		}

		@Override
		public ActivityBean[] newArray(int size) {
			return new ActivityBean[size];
		}
	};
}
